css: Raised SYNTAX error when enum value can't be parsed
authorBenjamin Otte <otte@redhat.com>
Sun, 15 May 2011 13:55:13 +0000 (15:55 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 18 May 2011 20:17:56 +0000 (22:17 +0200)
gtk/gtkcssstringfuncs.c

index 53a5cccd686596c9c2e38c53e350ba9d176f01f5..19ae2aa52d07ca0052bc9c8c4e8e666529fd6f2c 100644 (file)
@@ -1120,7 +1120,7 @@ enum_value_from_string (const char  *str,
     {
       g_set_error (error,
                    GTK_CSS_PROVIDER_ERROR,
-                   GTK_CSS_PROVIDER_ERROR_FAILED,
+                   GTK_CSS_PROVIDER_ERROR_SYNTAX,
                    "Unknown value '%s' for enum type '%s'",
                    str, g_type_name (G_VALUE_TYPE (value)));
       g_type_class_unref (enum_class);